package com.dsz.day5set;

public class TreeNode {
    public int val;
    TreeNode left;
    TreeNode right;

    public TreeNode(int val)//公共构造方法接受一个val表示当前的节点值
    {
        this.val = val;//将传入参数的val赋值给当前节点的val属性
        left = null;
        right = null;

    }
}
